package com.tsx.wiki.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

@Data
public class PageParam {
    @NotNull(message = "页码不能为空")
    private Integer current;
    @NotNull(message = "每页条数不能为空")
    @Max(value = 20, message = "每页条数不能超过20")
    private Integer pageSize;
}
